Factorial

Block Group: Math Operations
Icon: Factorial block icon

The Factorial block returns the single factorial of a number. The single factorial of n is equal to 1*2*3*…* n.

A negative input value causes 1 to be returned. If the input value is not an integer, it is truncated. The factorial of zero is one. Error values, and text that cannot be resolved to a number, cause 1 to be returned.


Input/Output Property

The following property of the Factorial block can take input and give output.


Output Property

The following property of the Factorial block can give output but cannot take input.


Examples

The following image shows four examples of the Factorial block.

Factorial block examples